package net.zjitc.common;


public enum RespCode {
    SUCCESS(0,"SUCCESS"),
    ERROR(1,"ERROR"),
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT");
    private final int state;
    private final String code;

    RespCode(int state, String code) {
        this.state = state;
        this.code = code;
    }

    public int getState() {
        return state;
    }

    public String getCode() {
        return code;
    }}
